package com.sl.rest.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "provider-user",fallbackFactory = UserFeignClientFallBackFactory.class)
@RequestMapping("/user")
public interface UserFeignClient {
    @GetMapping("/name")
    String getName();
}
